
pkgname=texinfo
pkgver=6.5
pkgrel=2
pkgdesc="Utilities to work with and produce manuals, ASCII text, and on-line documentation from a single source file"
arch=('x86_64')
url="https://www.gnu.org/software/texinfo/"
license=('GPL3')
groups=('base')
depends=('ncurses' 'findutils' 'gzip' 'sh' 'perl')
source=("https://ftp.gnu.org/pub/gnu/texinfo/${pkgname}-${pkgver}.tar.xz"
        'texinfo-install.hook'
        'texinfo-remove.hook')
md5sums=('3715197e62e0e07f85860b3d7aab55ed'
         '9a98fb162650ff3065f9a4ebec22db36'
         '5590fb3ef9ec309c98f5a4d85eca49da')

build() {
   cd ${pkgname}-${pkgver}
   #sed -i 's|6.0|6.2|' tp/Texinfo/Convert/XSParagraph/TestXS.pm
   
   ./configure --prefix=/usr --libexecdir=/usr/lib
   make
}

package() {
   cd ${pkgname}-${pkgver}
   make DESTDIR=${pkgdir} install
   
   install -dm755 ${pkgdir}/usr/share/libalpm/hooks/
   install -m644 ../texinfo-install.hook ${pkgdir}/usr/share/libalpm/hooks/
   install -m644 ../texinfo-remove.hook ${pkgdir}/usr/share/libalpm/hooks/
}
